import http from '@/utils/request'

import IBaseObj from '#/index'

const getSession = (data: IBaseObj) =>
  http({
    method: 'post',
    url: '/session/user/page',
    data,
  })

const offlineUser = (loginCode: string) =>
  http({
    url: `/session/user/${loginCode}/offline`,
    method: 'get',
  })

export default {
  getSession,
  offlineUser,
}
